package ee.serge.shared;

import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.gwt.user.client.rpc.IsSerializable;

@PersistenceCapable
public class Admin implements IsSerializable {

   @PrimaryKey
   @Persistent
   private String username;
   @Persistent
   private String password;
   @Persistent
   private String name;
   @Persistent
   private String email;
   
   public Admin() {}
   
   public Admin(String username, String password, String name, String email) {
      super();
      this.username = username;
      this.password = password;
      this.name = name;
      this.email = email;
   }
   
   public String getUsername() {
      return username;
   }
   
   public String getPassword() {
      return password;
   }
   
   public String getName() {
      return name;
   }
   
   public String getEmail() {
      return email;
   }

   @Override
   public String toString() {
      return "Admin [username=" + username + ", password=" + password
            + ", name=" + name + ", email=" + email + "]";
   }

   public void setUsername(String username) {
      this.username = username;
   }

   public void setPassword(String password) {
      this.password = password;
   }

   public void setName(String name) {
      this.name = name;
   }

   public void setEmail(String email) {
      this.email = email;
   }

}
